home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / General / GCC 1.37.1r15 / Machines / tm-iris.h < prev    next >
C/C++ Source or Header  |  1990-03-14  |  2KB  |  46 lines

  1. #include "tm-mips.h"
  2.  
  3. /* Names to predefine in the preprocessor for this target machine.  */
  4.  
  5. #undef CPP_PREDEFINES
  6. #define CPP_PREDEFINES "-Dunix -Dmips"
  7. #undef CPP_SPEC
  8. #define CPP_SPEC "-Dsgi -DSVR3 -Dhost_mips -DMIPSEB -DSYSTYPE_SYSV -DLANGUAGE_C"
  9.  
  10. #define STARTFILE_SPEC  \
  11.   "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
  12.  
  13. #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} crtn.o%s"
  14.  
  15. #define ASM_OUTPUT_SOURCE_FILENAME(FILE, FILENAME) \
  16.   fprintf (FILE, "\t.file\t1 \"%s\"\n", FILENAME)
  17.  
  18. #undef ASM_OUTPUT_SOURCE_LINE
  19. #define ASM_OUTPUT_SOURCE_LINE(file, line)              \
  20.   { static int sym_lineno = 1;                          \
  21.     fprintf (file, "\t.loc\t1 %d\nLM%d:\n",     \
  22.              line, sym_lineno);         \
  23.     sym_lineno += 1; }
  24.  
  25. #undef STACK_ARGS_ADJUST
  26. #define STACK_ARGS_ADJUST(SIZE)                                         \
  27. {                                                                       \
  28.   SIZE.constant += 4;                                                   \
  29.   if (SIZE.var)                                                         \
  30.     {                                                                   \
  31.       rtx size1 = ARGS_SIZE_RTX (SIZE);                                 \
  32.       rtx rounded = gen_reg_rtx (SImode);                               \
  33.       rtx label = gen_label_rtx ();                                     \
  34.       emit_move_insn (rounded, size1);                                  \
  35.       /* Needed: insns to jump to LABEL if ROUNDED is < 16.  */         \
  36.       abort ();                                                         \
  37.       emit_move_insn (rounded, gen_rtx (CONST_INT, VOIDmode, 16));      \
  38.       emit_label (label);                                               \
  39.       SIZE.constant = 0;                                                \
  40.       SIZE.var = rounded;                                               \
  41.     }                                                                   \
  42.   else if (SIZE.constant < 32)                                          \
  43.     SIZE.constant = 32;                                                 \
  44. }
  45.  
  46.